package com.ruoyi.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目对象 pro_project
 * 
 * @author ruoyi
 * @date 2024-12-03
 */
public class ProProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 项目ID */
    private Long id;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String name;

    /** 项目信息 */
    @Excel(name = "项目信息")
    private String info;

    /** 项目负责人 */
    @Excel(name = "项目负责人")
    private String owner;

    /** 最大成员数 */
    @Excel(name = "最大成员数")
    private Long maxNum;

    /** 最大持续时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最大持续时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maxTime;

    /** 项目类型 */
    @Excel(name = "项目类型")
    private Long typeId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }
    public void setMaxNum(Long maxNum) 
    {
        this.maxNum = maxNum;
    }

    public Long getMaxNum() 
    {
        return maxNum;
    }
    public void setMaxTime(Date maxTime) 
    {
        this.maxTime = maxTime;
    }

    public Date getMaxTime() 
    {
        return maxTime;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("info", getInfo())
            .append("owner", getOwner())
            .append("createTime", getCreateTime())
            .append("maxNum", getMaxNum())
            .append("maxTime", getMaxTime())
            .append("typeId", getTypeId())
            .toString();
    }
}
